<?php
/**
 * 古今玩小程序模块定义
 *
 * @author 指尖团队
 * @url http://bbs.we7.cc/
 */
defined('IN_IA') or exit('Access Denied');

class Zh_gjwModule extends WeModule {

public function welcomeDisplay()
    {   
        global $_GPC, $_W;
  $account=pdo_get('zh_gjw_account',array('uid'=>$_W['user']['uid']));
	    $url = $this->createWebUrl('cates'); 
          if ($_W['role'] == 'operator'&& $account['role']==2) {
        	$url = $this->createWebUrl('log');
        }
	    Header("Location: " . $url);
    }

}